package com.oms.module.merchant.domain.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Author zhanghailong QQ38592077
 * @Description TODO
 * @Date 2020/7/7 11:09
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel
public class UserRegVO implements Serializable {
    @ApiModelProperty(required = true)
    @NotEmpty(message = "用户名不能为空")
    private String username;

    @NotEmpty(message = "密码不能为空")
    @ApiModelProperty(required = true)
    private String password;

    @NotEmpty(message = "QQ不能为空")
    @ApiModelProperty(required = true)
    private String qq;

    @ApiModelProperty(required = true)
    @NotEmpty(message = "邀请码不能为空")
    private String invitationCode;

    @ApiModelProperty(required = true,example = "1推广员2商家")
    @NotNull(message = "邀请码类型不能为空")
    private Integer invitationCodeType;

    @ApiModelProperty(required = true)
    @NotEmpty(message = "验证码不能为空")
    private String verificationCode;
}
